package smetana.modules.business;

import smetana.domain.join.DocPositionReport;
import smetana.domain.raw.Doc;
import smetana.domain.raw.DocPosition;

import java.util.List;

/**
 * @author dmitry.mamonov
 */
public interface BusinessDocPosition {
    //doc positions.

    DocPosition newDocPosition(Doc doc);

    void saveDocPosition(DocPosition docPosition);

    void deleteDocPosition(DocPosition docItem);

    //doc position queries.

    DocPositionReport findDocPositionReport(Integer documentItemId);

    List<DocPositionReport> listDocPositionReports(Doc doc);
}
